#!/usr/bin/env node

const cp = require('child_process'),
      http = require('http');

console.log(`I am father process.PID:${process.pid}`);

http.createServer((req,res) => {
  let child = cp.spawn('./03-child.js');
  child.stdout.pipe(res);
}).listen(8080);
